package com.legendshop.oa.model;


import com.legendshop.dao.persistence.Column;
import com.legendshop.dao.persistence.Entity;
import com.legendshop.dao.persistence.GeneratedValue;
import com.legendshop.dao.persistence.GenerationType;
import com.legendshop.dao.persistence.Id;
import com.legendshop.dao.persistence.Table;
import com.legendshop.dao.persistence.TableGenerator;
import com.legendshop.dao.support.GenericEntity;

/**
 * 附件引用表
 */
@Entity
@Table(name = "ls_attmnt_rel")
public class AttachmentRel implements GenericEntity<Long> {

	private static final long serialVersionUID = -4596862889175156034L;

	/**  */
	private Long id;

	/** 附件ID */
	private Long attmntId;

	/** 引用对象ID */
	private Long relId;

	/** 引用对象类型 */
	private String relObject;

	public AttachmentRel() {
	}

	@Id
	@Column(name = "id")
	@GeneratedValue(strategy = GenerationType.TABLE, generator = "generator")
	@TableGenerator(name = "generator", pkColumnValue = "ATTMNT_REL_SEQ")
	public Long getId() {
		return id;
	}

	public void setId(Long id) {
		this.id = id;
	}

	@Column(name = "attachment_id")
	public Long getAttmntId() {
		return attmntId;
	}

	public void setAttmntId(Long attmntId) {
		this.attmntId = attmntId;
	}

	@Column(name = "rel_id")
	public Long getRelId() {
		return relId;
	}

	public void setRelId(Long relId) {
		this.relId = relId;
	}

	@Column(name = "rel_object")
	public String getRelObject() {
		return relObject;
	}

	public void setRelObject(String relObject) {
		this.relObject = relObject;
	}

}
